/*
 *    Copyright (c) 2018-2025, proj All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the proj developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: proj
 */

package com.ykht.proj.activity.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ykht.proj.activity.entity.VOrder;
import com.ykht.proj.activity.vo.EntOrderDto;
import com.ykht.proj.activity.vo.VActivityVo;
import com.ykht.proj.activity.vo.VOrderVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 订单(企业 用户购买卡订单)表
 *
 * @author csg
 * @date 2021-05-21 14:22:31
 */
@Mapper
public interface VOrderMapper extends BaseMapper<VOrder> {
	/**
	 * 获取 活动列表字段 付款人数
	 * @param longList
	 * @return
	 */
    List<VActivityVo> getPurchaseCount(@Param("longList") List<Long> longList);

	/**
	 * 企业购买卡记录 分页查询
	 *
	 * @param page     分页
	 * @param entOrderDto 条件
	 * @return
	 */
    IPage<EntOrderDto> getEntBuyCardListPage(Page page, @Param("req") EntOrderDto entOrderDto);
}
